import request from '@/utils/request'

export function listType(query) {
  return request({
    url: '/product/type/selectTypeList',
    method: 'get',
    params: query
  })
}

export function selectByName(data) {
  return request({
    url: '/product/type/selectListByTypeName',
    method: 'post',
    data:data
  })
}

export function delType(data) {
  return request({
    url: '/product/type/delType',
    method: 'post',
    data:data
  })
}

export function editType(data) {
  return request({
    url: '/product/type/editType',
    method: 'post',
    data:data
  })
}

export function addType(data) {
  return request({
    url: '/product/type/addType',
    method: 'post',
    data:data
  })
}
